<template>

  <div id="manage" class="manage">
    <!-- header -->
    <yd-navbar slot="navbar" fixed>
      <router-link to="/user" slot="left">
        <yd-navbar-back-icon></yd-navbar-back-icon>
      </router-link>
      <span slot="center" style="font-size:18px">管理</span>
      <router-link to="/user/setter" slot="right">
        <yd-icon name="setting" size="25px" color="#777"></yd-icon>
      </router-link>
    </yd-navbar>
    <!-- content -->
    <div class="content-manage" fixed>

      <div class="user-menu">
        <yd-cell-group>
          <router-link to="/manage/addProduct">
            <yd-cell-item>
              <span slot="left">添加商品：</span>
              <div slot="right">
                <yd-navbar-next-icon></yd-navbar-next-icon>
              </div>
            </yd-cell-item>
          </router-link>

          <router-link to="/manage/productList">
            <yd-cell-item>
              <span slot="left">商品列表：</span>
              <div slot="right">
                <yd-navbar-next-icon></yd-navbar-next-icon>
              </div>
            </yd-cell-item>
          </router-link>
        </yd-cell-group>

        <yd-cell-group>
          <router-link to="/manage/addCategory">
            <yd-cell-item>
              <span slot="left">添加分类：</span>
              <div slot="right">
                <yd-navbar-next-icon></yd-navbar-next-icon>
              </div>
            </yd-cell-item>
          </router-link>
          <router-link to="/manage/categoryList">
            <yd-cell-item>
              <span slot="left">分类管理：  (查，改)</span>
              <div slot="right">
                <yd-navbar-next-icon></yd-navbar-next-icon>
              </div>
            </yd-cell-item>
          </router-link>
        </yd-cell-group>

        <yd-cell-group>
          <router-link to="/manage/myUpload">
            <yd-cell-item>
              <span slot="left">上传文件</span>
              <div slot="right">
                <yd-navbar-next-icon></yd-navbar-next-icon>
              </div>
            </yd-cell-item>
          </router-link>
        </yd-cell-group>

        <yd-cell-group>
          <router-link to="/manage/orderList">
            <yd-cell-item>
              <span slot="left">订单列表：（订单处理，物流处理等）</span>
              <div slot="right">
                <yd-navbar-next-icon></yd-navbar-next-icon>
              </div>
            </yd-cell-item>
          </router-link>
        </yd-cell-group>

        <yd-cell-group>
          <router-link to="#">
            <yd-cell-item>
              <span slot="left">联系客服：</span>
              <div slot="right">
                <yd-navbar-next-icon></yd-navbar-next-icon>
              </div>
            </yd-cell-item>
          </router-link>
        </yd-cell-group>
      </div>
      <div class="space-10"></div>
      <!--
      <yd-button size="large" bgcolor="#2196f3" color="#fff" @click.native="exit">退出登录</yd-button>
      -->
    </div>

  </div>

</template>

<script>
  import baseService from '../../axios/'
  export default {
    name: 'manage',
    data() {
      return {
        message: '管理后台'
      }
    },
    methods: {
      // exit: function () {
      //   baseService.post('/user/logout.do').then((res) => {
      //     if (res.data.status == 0) {
      //       this.$router.push({
      //         path: '/'
      //       })
      //       this.$dialog.alert({
      //         mes: res.data.data
      //       });
      //     }
      //   })
      // }
    }
  }

</script>

<style>
  .manage .content-manage {
    position: fixed;
    padding-top: 15%;
    height: 94%;
    width: 100%;
    overflow-y: auto !important;
  }
  .content-manage .yd-cell-item{
    border-bottom: solid !important;
    border-bottom-color:#f2f2f2 !important;
  }

</style>
